import Vue from 'vue'
import App from './App'
import {router,RouterMount} from './router.js'  //路由
import uView from "uview-ui"
import utils from '@/util'
import cloneDeep from 'lodash/cloneDeep'
import validator from '@/util/validator'
import validate from '@/util/validate'
import simpleCache from "@/util/Simple-Cache"

Vue.config.productionTip = false

Vue.use(uView)
Vue.use(router)

Vue.prototype.$cloneDeep = cloneDeep
Vue.prototype.$utils = utils
Vue.prototype.validator = validator
Vue.prototype.$validate = validate
Vue.prototype.$simpleCache = simpleCache


App.mpType = 'app'

const app = new Vue({
    ...App
})
//v1.3.5起 H5端 你应该去除原有的app.$mount();使用路由自带的渲染方式
// #ifdef H5
	RouterMount(app,router,'#app')
// #endif

// #ifndef H5
	app.$mount(); //为了兼容小程序及app端必须这样写才有效果
// #endif